/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.wx.entity.WxActivity;
import com.jeesite.modules.wx.dao.WxActivityDao;
import org.springframework.web.util.HtmlUtils;

/**
 * wx_activityService
 * @author wangjianxin
 * @version 2018-09-28
 */
@Service
@Transactional(readOnly=true)
public class WxActivityService extends CrudService<WxActivityDao, WxActivity> {
	
	/**
	 * 获取单条数据
	 * @param wxActivity
	 * @return
	 */
	@Override
	public WxActivity get(WxActivity wxActivity) {
		return super.get(wxActivity);
	}

	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param wxActivity
	 * @return
	 */
	@Override
	public Page<WxActivity> findPage(Page<WxActivity> page, WxActivity wxActivity) {
		return super.findPage(page, wxActivity);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param wxActivity
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(WxActivity wxActivity) {
		super.save(wxActivity);
	}
	
	/**
	 * 更新状态
	 * @param wxActivity
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(WxActivity wxActivity) {
		super.updateStatus(wxActivity);
	}
	
	/**
	 * 删除数据
	 * @param wxActivity
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(WxActivity wxActivity) {
		super.delete(wxActivity);
	}

//	public static void main(String[] args) {
//		System.out.println(HtmlUtils.htmlUnescape("&lt;p&gt;今天免单&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-weight: bold; font-size: x-large;&quot;&gt;今天免单吗啊啊&lt;/span&gt;&lt;/p&gt;"));
//	}
	
}